﻿#ifndef UIBUCKETSLISTWIDGET_H
#define UIBUCKETSLISTWIDGET_H

#include "src/middle/structs/cloudmodels.h"
#include <QWidget>

namespace Ui
{
    class UiBucketsListWidget;
}

/// @brief 桶展示界面(列表)
///
class UiBucketsListWidget: public QWidget
{
    Q_OBJECT
private:
    Ui::UiBucketsListWidget *ui;

public:
    explicit UiBucketsListWidget(QWidget *parent = nullptr);
    ~UiBucketsListWidget();

private slots:
    void onBucketsSuccess(const QList<MyBucket> &buckets);
    void on_listView_doubleClicked(const QModelIndex &index);
    void showBucketObjects(const QString &bucketName);
    void onTextEdited(const QString &text);
};

#endif // UIBUCKETSLISTWIDGET_H
